using OrdersManager.Module.BusinessEntities;
using OrdersManager.Module.Views;

namespace OrdersManager.Module.Tests.Mocks
{
	public class MockOrderListView : IOrderListView
	{
        private OrderCollection _orders;
        private bool _showOrdersCalled;

        public OrderCollection Orders
        {
            get 
            { 
                return _orders; 
            }

        }

        public bool ShowOrdersCalled
        {
            get 
            { 
                return _showOrdersCalled; 
            }
            set 
            { 
                _showOrdersCalled = value; 
            }
        }

		public void ShowOrders(OrderCollection orders)
		{
			_orders = orders;
			ShowOrdersCalled = true;
		}

	}

}